ScanDocument StartScanning
Start the Laser scanning process on the associated device with this ScanDocument.
Overloads
public void StartScanning() |
public void StartScanning(StorageLocation localJobLocation, string localJobName, JobExecutionMode executionMode = 0) |
Return value
void |
Parameters
StorageLocation | localJobLocation | Select the storage location |
string | localJobName | Name of the job file |
JobExecutionMode | executionMode | Select the job execution mode |
Exceptions
DeviceNotConnectedException | Throws when the device is not connected. |
DeviceCommunicationFailureException | Throws if the communication with the device has failed |
DeviceFailureException | Throws when the device failed to start due to an unknown reason |
Example
Copy
scanDocument = scanDeviceManager.CreateScanDocument(GetselectedDeviceUniqueName(), DistanceUnit.Millimeters, false);
if (scanDocument != null)
{
VectorImage vectorImage = scanDocument.CreateVectorImage("image1", DistanceUnit.Millimeters);
vectorImage.SetMarkSpeed(1000);
vectorImage.SetJumpSpeed(2000);
vectorImage.SetJumpDelay(100);
vectorImage.SetMarkDelay(100);
//Set Laser Delays
vectorImage.SetLaserOnDelay(10);
vectorImage.SetLaserOffDelay(10);
vectorImage.AddCircle(0, 0, 0, 10);
scanDocument.Scripts.Add(new ScanningScriptChunk("defaultScript", "ScanAll()"));
try
{
scanDocument.StartScanning();
}
catch
{
}
}